package com.boruan.qq.zxgylibrary.service.model;

import java.util.List;

/**
 * Created by 崔琦 on 2019/9/20.
 * des: 支付结果实体
 */

public class PayResultBean {

    /**
     * status : 200
     * data : {"created":1568950182000,"tradeId":"201909200004151501","merchantId":"898370289990909","merchantNo":null,"totalAmount":7.5,"kindCode":"GYPT","kindName":"购药平台","buyerId":"1000129910","buyerNick":null,"goods":[{"goodsCode":null,"goodsName":null,"salePrice":1.5,"quantity":1,"skuId":null}],"returnUrl":null,"notifyUrl":null,"pay":false,"paid":null,"refund":false,"state":"DEALING","fundId":"3012019092000014952","type":"PAYMENT","fundState":null,"accountId":"1000129910","code":null,"payType":"ALIPAY_PSCAN","bankType":null,"bankAccount":null,"payerId":null,"payerName":null,"payeeId":null,"payeeName":null}
     */

    private int status;
    private ResultBean result;

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public ResultBean getResult() {
        return result;
    }

    public void setResult(ResultBean result) {
        this.result = result;
    }

    public static class ResultBean {
        /**
         * created : 1568950182000
         * tradeId : 201909200004151501
         * merchantId : 898370289990909
         * merchantNo : null
         * totalAmount : 7.5
         * kindCode : GYPT
         * kindName : 购药平台
         * buyerId : 1000129910
         * buyerNick : null
         * goods : [{"goodsCode":null,"goodsName":null,"salePrice":1.5,"quantity":1,"skuId":null}]
         * returnUrl : null
         * notifyUrl : null
         * pay : false
         * paid : null
         * refund : false
         * state : DEALING
         * fundId : 3012019092000014952
         * type : PAYMENT
         * fundState : null
         * accountId : 1000129910
         * code : null
         * payType : ALIPAY_PSCAN
         * bankType : null
         * bankAccount : null
         * payerId : null
         * payerName : null
         * payeeId : null
         * payeeName : null
         */

        private long created;
        private String tradeId;
        private String merchantId;
        private Object merchantNo;
        private double totalAmount;
        private String kindCode;
        private String kindName;
        private String buyerId;
        private Object buyerNick;
        private Object returnUrl;
        private Object notifyUrl;
        private boolean pay;
        private Object paid;
        private boolean refund;
        private String state;
        private String fundId;
        private String type;
        private Object fundState;
        private String accountId;
        private Object code;
        private String payType;
        private Object bankType;
        private Object bankAccount;
        private Object payerId;
        private Object payerName;
        private Object payeeId;
        private Object payeeName;
        private List<GoodsBean> goods;

        public long getCreated() {
            return created;
        }

        public void setCreated(long created) {
            this.created = created;
        }

        public String getTradeId() {
            return tradeId;
        }

        public void setTradeId(String tradeId) {
            this.tradeId = tradeId;
        }

        public String getMerchantId() {
            return merchantId;
        }

        public void setMerchantId(String merchantId) {
            this.merchantId = merchantId;
        }

        public Object getMerchantNo() {
            return merchantNo;
        }

        public void setMerchantNo(Object merchantNo) {
            this.merchantNo = merchantNo;
        }

        public double getTotalAmount() {
            return totalAmount;
        }

        public void setTotalAmount(double totalAmount) {
            this.totalAmount = totalAmount;
        }

        public String getKindCode() {
            return kindCode;
        }

        public void setKindCode(String kindCode) {
            this.kindCode = kindCode;
        }

        public String getKindName() {
            return kindName;
        }

        public void setKindName(String kindName) {
            this.kindName = kindName;
        }

        public String getBuyerId() {
            return buyerId;
        }

        public void setBuyerId(String buyerId) {
            this.buyerId = buyerId;
        }

        public Object getBuyerNick() {
            return buyerNick;
        }

        public void setBuyerNick(Object buyerNick) {
            this.buyerNick = buyerNick;
        }

        public Object getReturnUrl() {
            return returnUrl;
        }

        public void setReturnUrl(Object returnUrl) {
            this.returnUrl = returnUrl;
        }

        public Object getNotifyUrl() {
            return notifyUrl;
        }

        public void setNotifyUrl(Object notifyUrl) {
            this.notifyUrl = notifyUrl;
        }

        public boolean isPay() {
            return pay;
        }

        public void setPay(boolean pay) {
            this.pay = pay;
        }

        public Object getPaid() {
            return paid;
        }

        public void setPaid(Object paid) {
            this.paid = paid;
        }

        public boolean isRefund() {
            return refund;
        }

        public void setRefund(boolean refund) {
            this.refund = refund;
        }

        public String getState() {
            return state;
        }

        public void setState(String state) {
            this.state = state;
        }

        public String getFundId() {
            return fundId;
        }

        public void setFundId(String fundId) {
            this.fundId = fundId;
        }

        public String getType() {
            return type;
        }

        public void setType(String type) {
            this.type = type;
        }

        public Object getFundState() {
            return fundState;
        }

        public void setFundState(Object fundState) {
            this.fundState = fundState;
        }

        public String getAccountId() {
            return accountId;
        }

        public void setAccountId(String accountId) {
            this.accountId = accountId;
        }

        public Object getCode() {
            return code;
        }

        public void setCode(Object code) {
            this.code = code;
        }

        public String getPayType() {
            return payType;
        }

        public void setPayType(String payType) {
            this.payType = payType;
        }

        public Object getBankType() {
            return bankType;
        }

        public void setBankType(Object bankType) {
            this.bankType = bankType;
        }

        public Object getBankAccount() {
            return bankAccount;
        }

        public void setBankAccount(Object bankAccount) {
            this.bankAccount = bankAccount;
        }

        public Object getPayerId() {
            return payerId;
        }

        public void setPayerId(Object payerId) {
            this.payerId = payerId;
        }

        public Object getPayerName() {
            return payerName;
        }

        public void setPayerName(Object payerName) {
            this.payerName = payerName;
        }

        public Object getPayeeId() {
            return payeeId;
        }

        public void setPayeeId(Object payeeId) {
            this.payeeId = payeeId;
        }

        public Object getPayeeName() {
            return payeeName;
        }

        public void setPayeeName(Object payeeName) {
            this.payeeName = payeeName;
        }

        public List<GoodsBean> getGoods() {
            return goods;
        }

        public void setGoods(List<GoodsBean> goods) {
            this.goods = goods;
        }

        public static class GoodsBean {
            /**
             * goodsCode : null
             * goodsName : null
             * salePrice : 1.5
             * quantity : 1
             * skuId : null
             */

            private Object goodsCode;
            private Object goodsName;
            private double salePrice;
            private int quantity;
            private Object skuId;

            public Object getGoodsCode() {
                return goodsCode;
            }

            public void setGoodsCode(Object goodsCode) {
                this.goodsCode = goodsCode;
            }

            public Object getGoodsName() {
                return goodsName;
            }

            public void setGoodsName(Object goodsName) {
                this.goodsName = goodsName;
            }

            public double getSalePrice() {
                return salePrice;
            }

            public void setSalePrice(double salePrice) {
                this.salePrice = salePrice;
            }

            public int getQuantity() {
                return quantity;
            }

            public void setQuantity(int quantity) {
                this.quantity = quantity;
            }

            public Object getSkuId() {
                return skuId;
            }

            public void setSkuId(Object skuId) {
                this.skuId = skuId;
            }
        }
    }
}
